home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / mntdoc01.zoo / mintdoc / cat3 / sysconf.3 < prev    next >
Encoding:
Text File  |  1993-03-03  |  1.5 KB  |  67 lines

  1.  
  2.  
  3.  
  4. SYSCONF(3)          MINTLIB LIBRARY FUNCTIONS          SYSCONF(3)
  5.  
  6.  
  7. N✓NA✓AM✓ME✓E
  8.        sysconf - query system related limits, values, options
  9.  
  10. S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
  11.        #include <unistd.h>
  12.  
  13.        long sysconf(int name);
  14.  
  15. D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
  16.        The sysconf function provides a method for the application
  17.        to determine the current value of  a  configurable  system
  18.        limit  or  option.  The  value  does not change during the
  19.        lifetime of the calling process.
  20.  
  21.        The following parameters to sysconf are supported:
  22.  
  23.        Name               Meaning                            Note
  24.        _SC_LAST         max limit # for sysconf         NOT POSIX
  25.        _SC_MEMR_MAX    memory regions per process      NOT  POSIX
  26.        _SC_ARG_MAX      max length of cmdln             NOT quite
  27.        POSIX _SC_OPEN_MAX    max #  of  open  files  per  process
  28.        POSIX      _SC_NGROUPS_MAX     max     #     supp     gids
  29.        POSIX _SC_CHILD_MAX   max # processes/user             NOT
  30.        quite POSIX
  31.  
  32. R✓RE✓ET✓TU✓UR✓RN✓N V✓VA✓AL✓LU✓UE✓ES✓S
  33.        sysconf returns the current variable value on success.  On
  34.        failure, it returns -1 and  sets  errno  to  indicate  the
  35.        error.
  36.  
  37. S✓SE✓EE✓E A✓AL✓LS✓SO✓O
  38.        p✓pa✓at✓th✓hc✓co✓on✓nf✓f(✓(3✓3)✓),✓, S✓Sy✓ys✓sc✓co✓on✓nf✓f(✓(2✓2)✓)
  39.  
  40. N✓NO✓OT✓TE✓E
  41.        It's  a  pity  this routine does not conform to POSIX; but
  42.        then, it's even more a pity that MiNT does not comply...
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.  
  64. MiNT docs 0.1              3 March 1993                         1
  65.  
  66.  
  67.